﻿<template>
    <div class="fillpanel h" v-loading="loading">
        <el-alert v-if="error" type="error">
            {{error.message}}

            <el-button v-on:click="loadMessage">Retry</el-button>
        </el-alert>

        <div class="toolbar"><el-button size="small" @click="download">Open</el-button></div>
        <template v-show="source" class="fillpanel fill">
            <textview :text="source" class="fill"></textview>
        </template>
    </div>
</template>
<script src="./messagepartsource.ts"></script>